<?php
class Project extends ProcessingDate{
	protected $id;
	protected $idProductOwner;
	protected $idScrumMaster;
	protected $name;
	protected $customer;
	protected $urlCalendarGoogle;
	protected $description;
	protected $dateBegin;
	protected $dateEndEstimated;
	protected $dateEndReal;
	protected $status;
	protected $data;
	
	//Propriedades Extras
	protected $fieldsDBObj;
	protected $fieldsDB;


	function __construct(){
		$this->fieldsDB['id']				= "id_projeto";
		$this->fieldsDB['idProductOwner']	= "id_product_owner";
		$this->fieldsDB['idScrumMaster']	= "id_scrum_master";
		$this->fieldsDB['name']				= "nome";
		$this->fieldsDB['customer']			= "cliente";
		$this->fieldsDB['urlCalendarGoogle']= "url_agenda_google";
		$this->fieldsDB['description']		= "descricao";
		$this->fieldsDB['dateBegin']		= "data_inicial";
		$this->fieldsDB['dateEndEstimated'] = "data_fim_estimada";
		$this->fieldsDB['dateEndReal']		= "data_fim_real";
		$this->fieldsDB['status']			= "status";
		$this->fieldsDB['data']				= "data";
	}
	
	protected function setDefaultError(){		
		trigger_error('Não é possível trocar o ID do projeto'); 
	}
	
}

?>